package org.yol.ts01;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class Component02 {


    private static final Logger log = LoggerFactory.getLogger(Component02.class);

    @EventListener
    public void handleTestEvent(TestEvent testEvent) {
        log.info("{}", testEvent);
    }
}
